//
//  WaterfallLayout.h
//  练习
//
//  Created by hcios on 2017/7/7.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WaterfallLayout;

@protocol WaterfallLayoutDelegate <NSObject>

-(CGFloat)heightForItemIndexPath:(NSIndexPath *)indexPath;

@end

@interface WaterfallLayout : UICollectionViewFlowLayout

@property (nonatomic,assign) CGSize itemSize;

@property (nonatomic,assign) UIEdgeInsets sectionInsets;

@property (nonatomic,assign) CGFloat insertItemSpacing;

@property (nonatomic,assign) NSUInteger numberOfColumn;

@property (nonatomic,weak) id<WaterfallLayoutDelegate>delegate;


@end
